<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Create
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Create schedule</h2>
    <div>
        <table id="schedule">
            <%= ViewData["sch"] %>
        </table>
    </div>
    <%using (Html.BeginForm())
      { %>
    <table>
        <tr>
            <td>
                Group:
            </td>
            <td>
                <%--<% using (Ajax.BeginForm("GetSchedule", new AjaxOptions() { UpdateTargetId = "schedule" }))
                   { %>--%>
                <%= Html.DropDownList("Groups")%>
                <%--<input type="submit" value="Go" />
                <%} %>--%>
            </td>
        </tr>
        <tr>
            <td>
                Week:
            </td>
            <td>
                <%= Html.RadioButton("IsFirstWeek", "1", true)%><label>Is first</label>
                <br />
                <%= Html.RadioButton("IsFirstWeek", "2", false)%><label>Is second</label>
            </td>
        </tr>
        <tr>
            <td>
                Day of week:
            </td>
            <td>
                <%= Html.DropDownList("Days")%>
            </td>
        </tr>
        <tr>
            <td>
                Subject:
            </td>
            <td>
                <%= Html.DropDownList("Subjects")%>
            </td>
        </tr>
        <tr>
            <td>
                Teacher:
            </td>
            <td>
                <%= Html.DropDownList("Teachers")%>
            </td>
        </tr>
        <tr>
            <td>
                Lecture room:
            </td>
            <td>
                <%= Html.TextBox("LectureRoom")%>
            </td>
        </tr>
        <tr>
            <td>
                Order:
            </td>
            <td>
                <%= Html.TextBox("SubjectOrder")%>
            </td>
        </tr>
    </table>
    <input type="submit" value="Save" />
    <% } %>
    <%= Html.ActionLink("back","Index") %>
</asp:Content>
